/* 基本样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* 版心 */
.wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1240px;
    padding: 0 15px;
}

/* 头部 */
.container .wrapper a {
    display: block;
    width: 100%;
    max-width: 171px;
    height: 62px;
    background-image: url("../images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 中部 */
.centre {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-image: url("../images/bg.png");
    background-size: cover;
    background-position: center;
}

/* 登录 */
.login {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 350px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.login p {
    display: flex;
    justify-content: space-between;
}

.login h2 {
    text-align: center;
    color: #333;
}

.login .saoma {
    color: #959595;
}

.login .user {
    color: #b71616;
}

.login form input {
    border: none;
 
}

.login form .username,
.login form .password {
    display: flex;
    height: 35px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
}

.login form .username a,
.login form .password a {
    display: block;
    width: 33px;
    height: 33px;
    background-size: contain;
    background-repeat: no-repeat;
}

.login form .username a {
    background-image: url("../images/zh.png");
}

.login form .password a {
    background-image: url("../images/pw.png");
}

.warn {
    margin-top: 20px;
    font-size: 12px;
    background-color: #fffeef;
    padding: 2px;
    padding-left: 15px;
}

.login .autoLogin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-checkbox span {
    color: #959595;
}

.login button {
    width: 100%;
    padding: 14px 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login button:hover {
    opacity: 0.8;
}

.login p span:active,
.login p span:hover {
    color: red;
}

.social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.social img {
    margin: 0 10px;
}

.social span {
    color: blueviolet;
    margin-left: 10px;
}

/* 底部 */
.foot {
    font-size: 14px;
    color: #959595;
    text-align: center;
    padding: 20px 0;
}

.foot p:first-child {
    margin-bottom: 14px;
}

.foot a {
    font-size: 16px;
    color: #959595;
    margin: 0 10px;
}

.foot p:last-child {
    margin-top: 10px;
}

/* 媒体查询 */
@media (max-width: 768px) {
    .login {
        width: 100%;
        max-width: 300px;
        padding: 15px;
    }

    .login form .username,
    .login form .password {
        margin-bottom: 10px;
    }

    .login .autoLogin {
        margin-bottom: 15px;
    }

    .login button {
        padding: 12px 20px;
    }

    .social {
        margin-top: 15px;
    }

    .social img {
        margin: 0 5px;
    }

    .social span {
        margin-left: 5px;
    }

    .foot {
        padding: 10px 0;
    }
}